<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>业务表单</title>
    <%@include file="/common/header.jspf"%>
    <script type="text/javascript">
        var loginUserName = '${loginUser.name}';
        var loginUserId = '${loginUser.id}'
    </script>
    <SCRIPT src="${ctx}/resources/js/hiddenDanger/hdRegister/add.js" type="text/javascript"></SCRIPT>
</head>
<body>
<div class="menu-right" style="">
    <a class="button icon-save" id="btn_save">
        保存
    </a>
    <a class="button icon-refer" id="">
        提交
    </a>
    <%--<a class="button icon-export">
        导入
    </a>--%>
</div>
<form id="hdRegisterForm" method="post">
<div class="information">
    <div class="information-title">
        <p>隐患基本信息</p>
        <a class="panel-down" href="javascript:void(0)">
            <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
        </a>
    </div>
    <div class="cuttle" style="height: 220px;">
        <div style="clear: both">
            <div class="form_one" style="width: 720px;">
                <label class="lable-style">隐患名称:</label>
                <input type="text" class="easyui-textbox" style="width: 598px;" required="true" name="name">
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">隐患所在单位:</label>
               <%-- <select class="easyui-combobox" style="width: 240px;" name="deptId" id="deptSelect">
                    <option value="1">请选择</option>
                </select>--%>
                <input id="dept" class="easyui-textbox" style="width: 240px;" required="true" validType="validSelect" name="deptId">
                <span>*</span>
            </div>

        </div>

        <div style="clear: both">
            <div class="form_one" style="width:720px">
                <label class="lable-style">隐患所在部位:</label>
                <input type="text" class="easyui-textbox" style="width:598px;" required="true" validType="validSelect" name="site">
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">关键装置/要害部位:</label>
                <input type="text" class="easyui-textbox" style="width: 240px;" name="keyEquipmentId" >
            </div>
        </div>
        <div style="clear: both">
            <div class="form_one">
                <label class="lable-style">隐患原因:</label>
                <input id="reason" name="reasonId" editable="false" required="true" validType="validSelect" style="width: 240px;">
            <%--<select class="easyui-combobox" style="width: 240px;" name="reasonId">
                    <option value="">请选择</option>
                </select>--%>
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">隐患分类:</label>
                <input id="hdType" name="typeId" editable="false" required="true" validType="validSelect" style="width: 240px;">
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">隐患来源:</label>
                <input id="hdSource" name="sourceId" editable="false" required="true" validType="validSelect" style="width: 240px;">
               <%-- <select class="easyui-combobox" style="width: 240px;" id="hdSource" name="sourceId">
                    <option value="1">请选择</option>
                </select>--%>
                <span>*</span>
            </div>

        </div>
        <div style="clear: both">
            <div class="form_one">
                <label class="lable-style">项目责任单位:</label>
                <input id="dutyDept" class="easyui-textbox" style="width: 240px;" required="true" validType="validSelect" name="dutyDeptId">
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">所属板块:</label>
                <input id="plate" name="plateId" editable="false" required="true" validType="validSelect" style="width: 240px;">
                <%--<select class="easyui-combobox" style="width: 240px;" id="plate" name="plateId">
                    <option value="">请选择</option>
                </select>--%>
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">年度:</label>
                <input id="yearth" name="yearth" editable="false" required="true" validType="validSelect" style="width: 240px;">
               <%-- <select class="easyui-combobox" style="width: 240px;" name="yearth">
                    <option value="">请选择</option>
                </select>--%>
                <span>*</span>
            </div>
        </div>
        <div style="clear: both;height:57px;">
            <div class="form_one fotm-textarea">
                <label class="lable-style">隐患描述:</label>
                <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" required="true" name="description"/>
                <span>*</span>
            </div>
        </div>
        <div style="clear: both">
            <div class="form_one fotm-textarea">
                <label class="lable-style">备注:</label>
                <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="remarks"/>
            </div>
        </div>


    </div>
</div>
    <div class="information">
        <div class="information-title">
            <p>防范措施</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div style="clear: both">
                <div class="form_one fotm-textarea">
                    <label class="lable-style">防范措施及整改建议:</label>
                    <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="changedSuggest" required="true"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>防范措施列表</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="enclosure"style="height:300px; " >
            <table id="precautionList">
            </table>
            <div id="tb">
                <a id="btn_precaution_add" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-plus fa-lg" style="margin:5px;" onclick="appendTableRow()">添加</a>
                <a id="btn_precaution_delete" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-trash fa-lg" style="margin:5px;" onclick="deleteTableRow()">删除</a>
                <a id="btn_precaution_edit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-edit fa-lg" style="margin:5px;" onclick="editTableRow()">编辑</a>
                <a id="btn_precaution_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" style="margin:5px;" onclick="saveTableRow()">保存</a>
                <a id="btn_precaution_reject" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-reply fa-lg" style="margin:5px;" onclick="rejectTableRow()">撤销</a>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>防范措施相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <accessory:accessorySimple permission="write"  packageKey="ffcs" uploadUserId="${loginUser.id}"   accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
    <div class="information">
        <div class="information-title">
            <p>隐患评估信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>

    <div class="cuttle" style="height: 230px;">
        <div style="clear: both">
            <div class="form_one" >
                <label class="lable-style">计划设计完成时间:</label>
                <input class="easyui-datebox" style="width: 240px;" editable="false" name="planDesignFinishTime" required="true">
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">计划采购完成时间:</label>
                <input class="easyui-datebox" style="width: 240px;" editable="false" name="planProcureFinishTime" required="true">
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">计划施工完成时间:</label>
                <input class="easyui-datebox" style="width: 240px;" editable="false" name="planConstructFinishTime" required="true">
                <span>*</span>
            </div>
        </div>
        <div style="clear: both">
            <div class="form_one" >
                <label class="lable-style">计划投用时间:</label>
                <input class="easyui-datebox" style="width: 240px;" editable="false" name="planUsedTime" required="true">
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">计划开始时间:</label>
                <input class="easyui-datebox" style="width: 240px;" editable="false" name="planStartTime">
            </div>
            <div class="form_one">
                <label class="lable-style">计划完成时间:</label>
                <input class="easyui-datebox" style="width: 240px;" editable="false" name="planFinishTime">
            </div>

        </div>
        <div style="clear: both">
            <div class="form_one">
                <label class="lable-style">隐患风险等级:</label>
                <input id="riskGrade" name="riskGradeId" editable="false" style="width: 240px;" >
            </div>
            <div class="form_one">
                <label class="lable-style">隐患等级:</label>
                <input id="hdGrade" name="gradeId" editable="false" style="width: 240px;" editable="false" required="true" validType="validSelect" >
                <%--<select class="easyui-combobox" style="width: 240px;" name="gradeId">
                    <option value="">请选择</option>
                </select>--%>
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">可能造成的损失（万元）:</label>
                <input type="text" class="easyui-textbox" style="width:240px;" name="possibleLoss" validType="intOrFloat">
            </div>


        </div>
        <div style="clear: both">
            <div class="form_one">
                <label class="lable-style">计划投资（万元）:</label>
                <input type="text" class="easyui-textbox" style="width:240px;" name="planInvest" required="true" validType="intOrFloat">
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">资金来源:</label>
                <input id="capitalSource" name="capitalSourceId" editable="false" style="width: 240px;" >
            </div>


        </div>
        <div style="clear: both;height:57px;">
            <div class="form_one fotm-textarea">
                <label class="lable-style">治理方案:</label>
                <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="treatScheme"/>
            </div>
        </div>
        <div style="clear: both">
            <div class="form_one fotm-textarea">
                <label class="lable-style">治理内容:</label>
                <input class="easyui-textbox" data-options="multiline:true" style="height: 50px;width: 598px;" name="treatContent"/>
            </div>
        </div>
    </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>治理内容相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <accessory:accessorySimple permission="write"  packageKey="zlnr" uploadUserId="${loginUser.id}"  accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
    <div class="information" >
        <div class="information-title">
            <p>验收信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
           <div class="cuttle" style="height: 100px;">
               <div style="clear: both">
                   <div class="form_one">
                       <label class="lable-style">主管部门:</label>
                       <input id="competentDept" style="width: 240px;" required="true" validType="validSelect" name="competentDeptId">
                       <span>*</span>
                   </div>
                   <div class="form_one">
                       <label class="lable-style">隐患负责人:</label>
                       <%--<input type="hidden" id="chargeUserId" name = "chargeUserId">--%>
                       <input id="chargeUser" name = "chargeUserId" class="easyui-textbox" editable="false" required="true" validType="validSelect" style="width: 240px;">
                       <span>*</span>
                   </div>
                   <div class="form_one">
                       <label class="lable-style">隐患验收人:</label>
                      <%-- <input type="hidden" id="acceptUserId" name = "acceptUserId">--%>
                       <input id="acceptUser" name = "acceptUserId" class="easyui-textbox" editable="false" required="true" validType="validSelect" style="width: 240px;">
                       <span>*</span>
                   </div>
               </div>
           </div>
    </div>
    <div class="information" style="">
        <div class="information-title">
            <p>风险信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>

        <div class="cuttle" style="height: 220px;">
            <a id="btn_riskAssess" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-bolt fa-lg" style="margin:5px;" onclick="add_riskLevelInfo_func()">风险评估</a>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">风险评估最大值:</label>
                    <input id="riskAssessMax" class="easyui-textbox" style="width: 240px;" editable="false" name="riskAssessMax">
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患评估值（人员）:</label>
                    <%--<input type="hidden" id="chargeUserId" name = "chargeUserId">--%>
                    <input id="riskAssessPeople" name = "riskAssessPeople" class="easyui-textbox" editable="false"  style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患评估值（财产）:</label>
                    <%--<input type="hidden" id="chargeUserId" name = "chargeUserId">--%>
                    <input id="riskAssessMoney" name = "riskAssessMoney" class="easyui-textbox" editable="false"  style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">

                <div class="form_one">
                    <label class="lable-style">隐患评估值（环境）:</label>
                    <%--<input type="hidden" id="chargeUserId" name = "chargeUserId">--%>
                    <input id="riskAssessEnvironment" name = "riskAssessEnvironment" class="easyui-textbox" editable="false"  style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">隐患评估值（声誉）:</label>
                    <%--<input type="hidden" id="chargeUserId" name = "chargeUserId">--%>
                    <input id="riskAssessPrestige" name = "riskAssessPrestige" class="easyui-textbox" editable="false"  style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">风险评估人员:</label>
                    <input id="riskAssessUserId" class="easyui-textbox" style="width: 240px;" editable="false" name="riskAssessUserId">
                </div>
            </div>
        </div>
    </div>



</form>
</body>
</html>
